<?php if(!defined('BASEPATH'))exit('No direct script access allowed');if(!function_exists('valid_email')){function valid_email($address){return(!preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix",$address))?FALSE:TRUE;}}if(!function_exists('send_email')){function send_email($recipient,$subject='Test email',$message='Hello World'){return mail($recipient,$subject,$message);}}